/*
	FileName : JT_C_TIME.h
	Description :
	Created on 2017.11.27 by WFL.

	Revision History:

*/



#ifndef  __JT_C_TIME_20171127__
#define  __JT_C_TIME_20171127__


#include "stdint.h"



////------------------------------------------------------------------------
extern uint32_t 	JT_C_TIME;

//------------------------------------------------------------------------------

uint8_t JTC_TIME_getSeco(uint32_t jtc_t);
uint8_t JTC_TIME_getMinu(uint32_t jtc_t);
uint8_t JTC_TIME_getHour(uint32_t jtc_t);
uint8_t JTC_TIME_getDate(uint32_t jtc_t);
uint8_t JTC_TIME_getMont(uint32_t jtc_t);
uint8_t JTC_TIME_getYear(uint32_t jtc_t);
//--------------------------------------
void JTC_TIME_setSeco(uint32_t *jtc_t,uint32_t sec);
void JTC_TIME_setMinu(uint32_t *jtc_t,uint32_t min);
void JTC_TIME_setHour(uint32_t *jtc_t,uint32_t hour);
void JTC_TIME_setDate(uint32_t *jtc_t,uint32_t date);
void JTC_TIME_setMont(uint32_t *jtc_t,uint32_t mon);
void JTC_TIME_setYear(uint32_t *jtc_t,uint32_t year);
uint32_t JTC_TIME_makeUpTime(uint8_t y,
								uint8_t mo,
								uint8_t d,
								uint8_t h,
								uint8_t mi,
								uint8_t s);
//---------------------------------------
uint8_t JTC_TIME_timeCheckErr(uint32_t time);
uint8_t JTC_TIME_dateCheckErr(uint8_t year,uint8_t mon, uint8_t date);
uint32_t JTC_TIME_timeAddSec(uint32_t time,uint16_t priod);

//------------------------------------------------------------------------------
#endif

///EOF


